package com.im.imservice;

import com.im.imservice.service.WebSocketServer;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan({"com.im","com.rocketmq"})
@EnableDiscoveryClient
@EnableFeignClients({"com.im.client"})
public class ImServiceApplication {


    public static void main(String[] args) {
        ApplicationContext applicationContext = new SpringApplicationBuilder(ImServiceApplication.class).run(args);
        applicationContext.getBean(WebSocketServer.class).start();
    }

}
